#include <54func.h>
int main(int argc,char *argv[])
{
    // ./15_open_pipe_write 1.pipe
    ARGS_CHECK(argc,2);
    int fdw = open(argv[1],O_WRONLY);
    ERROR_CHECK(fdw,-1,"open");
    printf("write side is opened!\n");
    
    //写操作！！！
   // sleep(10);
    write(fdw,"Hello",5);
    printf("write over!\n");
    //while(1){
    //    sleep(1);//睡眠！
    //}
    close(fdw);
    return 0;
}
